package transactionimplementation

import (
	"salary/abstracttransactions"
	"salary/model"
	"salary/modelimplementation"
)

/*
 * 更改雇员类别：正常
 */

type ChangeSalariedTransaction struct {
	abstracttransactions.ChangeClassificationTransaction
	salary float64
}

func (cst *ChangeSalariedTransaction) GetClassification() model.PaymentClassification {
	return modelimplementation.NewSalariedClassification(cst.salary)
}

func (cst *ChangeSalariedTransaction) GetSchedule() model.PaymentSchedule {
	return &modelimplementation.MonthlySchedule{}
}